<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

const keydownHandle = (event: KeyboardEvent) => {
  if (event.ctrlKey && event.key === 'c') {
    event.preventDefault(); // 阻止默认行为（如复制）
    router.back(); // 触发路由后退
  }
}

// 添加全局键盘事件监听器
window.addEventListener('keydown', keydownHandle);
</script>

<template>
  <RouterView></RouterView>
</template>

<style scoped>

</style>
